package com.cw.japp

class State {

	Integer code
	String name
	String shortName
	Integer status
	Date lastModifiedDate
	Date createdDate

	static hasMany = [addresses: Address]

	static mapping = {
		id column: "state_id"
		version false
	}

	static constraints = {
		code nullable: true
		name nullable: true
		shortName nullable: true
		status nullable: true
		lastModifiedDate nullable: true
		createdDate nullable: true
	}
}
